package uk.ac.glasgow.demosocs.users;

public class User {
	private String surname;
	private String forename;
	private String GUID;
	private String password;
	
	public User(){
		
	}
	
	public User (String surname, String forename, String GUID, String password){
		this.surname = surname;
		this.forename = forename;
		this.setGUID(GUID);
		this.password = password;
	}
	
	/**
	 * authentication function
	 * @param password
	 * @return boolean 
	 */
	protected boolean authenticate (String password){
		return this.password.equals(password);
	}
	
	
	//surname
	public String getSurname(){
		return surname;
	}
	
	public void setSurname(String surname){
		this.surname = surname;
	}
	
	//forename
	public String getForename(){
		return forename;
	}
	
	public void setForename(String forename){
		this.forename = forename;
	}

	//guid
	public String getUserGUID() {
		return GUID;
	}

	public void setGUID(String gUID) {
		GUID = gUID;
	}
	
	public String getPassword(){
		return password;
	}
}
